/*
 * @Author: Mcc
 * @Date: 2024-07-09 15:24:14
 * @LastEditors: mcc 550539422@qq.com
 * @LastEditTime: 2024-07-09 15:24:22
 * @FilePath: \newsAnt\vite-project\src\store\main.ts
 * @Description:
 *
 * Copyright (c) 2024 by Mcc, All Rights Reserved.
 */
import { defineStore } from 'pinia';
export const useStore = defineStore({
  id: 'store',
  state: () => ({
    userInfo: {},
    hasLogin: false,
    routerIndex: '1', //用来控制当前在哪一个页面，页面变化的时候，要改变这个值
    resumeInfo: {},
    resumeProcess: {},
  }),
  persist: true,
});
